package cn.gtlc.domain;

import java.io.*;
import java.util.ArrayList;
import java.util.List;

/**
 * @Description TODO
 * @Author Jowin
 * @Date 2023/5/28
 * @Version -
 */
public class CarTest {
    public static void main(String[] args) throws Exception {
        //BufferedReader是可以按行读取文件
        FileInputStream inputStream = new FileInputStream("D:\\wwwroot\\idea-git\\src\\main\\java\\cn\\gtlc\\1123.txt");
        inputStream = new FileInputStream("D:\\wwwroot\\idea-git\\src\\main\\java\\cn\\gtlc\\cardb_ddl_zhouwx-toMySql.sql");
        inputStream = new FileInputStream("G:\\国产化改造\\cardb\\cardb_mysq0712B.sql");
        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream));

        String str = null;
        while((str = bufferedReader.readLine()) != null)
        {
            if (str.trim().startsWith("CREATE TABLE")) {
                System.out.println(str);
            }
        }
        inputStream.close();
        bufferedReader.close();

    }
}
